package com.woniu.commons.feign;

import com.woniu.commons.response.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

import java.util.List;

@FeignClient(name = "goods",path = "/goods")
public interface FeignGoodsService {
    //库存修改
    @PutMapping("/updateStock/{id}/{stock}")
    ResponseResult<Boolean> updateStock(@PathVariable("id") Integer id, @PathVariable("stock") Integer stock);

}
